import request from '@/utils/request'

// 查客户信息列表
export function customerList(query) {
  return request({
    url: '/sale/customer/list',
    method: 'get',
    params: query
  })
}

// 查询客户类型列表
export function customerTypeList(query) {
  return request({
    url: '/sale/customerType/list',
    method: 'get',
    params: query
  })
}
// 添加客户
export function customerAddList(query) {
  return request({
    url: '/sale/customer/add',
    method: 'post',
    data: query
  })
}

// 新增客户类别
export function customerTypeAdd(query) {
  return request({
    url: '/sale/customerType/add',
    method: 'post',
    data: query
  })
}

// 编辑客户类型
export function customerTypeEdit(query) {
  return request({
    url: '/sale/customerType/edit',
    method: 'post',
    data: query
  })
}

// 查询二级标签
export function customerTypeTagList(query) {
  return request({
    url: '/sale/customerType/tagList',
    method: 'get',
    params: query
  })
}

export function customerTypeTagEdit(query) {
  return request({
    url: 'sale/customer/edit',
    method: 'post',
    data: query
  })
}
